<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 求乘积等于100的所有乘数和被乘数（以一对的方式输出） -->
    <script>
     

        for(var i = 1; i <= 100; i++){
            for(var j = 1; j <= 100; j++){
                if(i * j == 100){
                    console.log(i + " * " + j);
                }
            }
        }

      /*   var num1 = 1;
        var num2 = 1;
         while (num1 <= 100) {
            while (num2 <= 100) {
                if (num1 * num2 == 100) {
                    console.log(num1 + " * " + num2);
                }
                num2++;
            }
            num1++;
            num2 = 1;
        } */
    </script>
</body>
</html>